//package com.zzyl.nursing.service.impl;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//import java.util.List;
//import java.util.Arrays;
//import com.zzyl.common.utils.DateUtils;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//import com.zzyl.nursing.mapper.HealthAssessmentMapper;
//import com.zzyl.nursing.domain.HealthAssessment;
//import com.zzyl.nursing.service.IHealthAssessmentService;
//
///**
// * 健康评估Service业务层处理
// *
// * @author sumjane
// * @date 2025-07-29
// */
//@Service
//public class HealthAssessmentServiceImpl extends ServiceImpl<HealthAssessmentMapper,HealthAssessment> implements IHealthAssessmentService
//{
//    @Autowired
//    private HealthAssessmentMapper healthAssessmentMapper;
//
//    /**
//     * 查询健康评估
//     *
//     * @param id 健康评估主键
//     * @return 健康评估
//     */
//    @Override
//    public HealthAssessment selectHealthAssessmentById(Long id)
//    {
//        return healthAssessmentMapper.selectById(id);
//    }
//
//    /**
//     * 查询健康评估列表
//     *
//     * @param healthAssessment 健康评估
//     * @return 健康评估
//     */
//    @Override
//    public List<HealthAssessment> selectHealthAssessmentList(HealthAssessment healthAssessment)
//    {
//        return healthAssessmentMapper.selectHealthAssessmentList(healthAssessment);
//    }
//
//    /**
//     * 新增健康评估
//     *
//     * @param healthAssessment 健康评估
//     * @return 结果
//     */
//    @Override
//    public int insertHealthAssessment(HealthAssessment healthAssessment)
//    {
//        healthAssessment.setCreateTime(DateUtils.getNowDate());
//        return healthAssessmentMapper.insert(healthAssessment);
//    }
//
//    /**
//     * 修改健康评估
//     *
//     * @param healthAssessment 健康评估
//     * @return 结果
//     */
//    @Override
//    public int updateHealthAssessment(HealthAssessment healthAssessment)
//    {
//        healthAssessment.setUpdateTime(DateUtils.getNowDate());
//        return healthAssessmentMapper.updateById(healthAssessment);
//    }
//
//    /**
//     * 批量删除健康评估
//     *
//     * @param ids 需要删除的健康评估主键
//     * @return 结果
//     */
//    @Override
//    public int deleteHealthAssessmentByIds(Long[] ids)
//    {
//        return healthAssessmentMapper.deleteByIds(Arrays.asList(ids));
//    }
//
//    /**
//     * 删除健康评估信息
//     *
//     * @param id 健康评估主键
//     * @return 结果
//     */
//    @Override
//    public int deleteHealthAssessmentById(Long id)
//    {
//        return healthAssessmentMapper.deleteById(id);
//    }
//}
